package com.wk.user.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.wk.user.bo.GoodsCollectBO;
import com.wk.user.dto.CollectAddOrDeleteParamDTO;
import com.wk.user.dto.CollectAddOrDeleteResultDTO;
import com.wk.user.fallback.CollectApiFallback;
import com.wk.user.po.Collect;

import com.wk.framework.api.Api;
import com.wk.framework.utils.Result;

import java.util.List;

@FeignClient(value = "cloud-user", path = "collect", fallback = CollectApiFallback.class)
public interface CollectApi extends Api<Collect> {

    @PostMapping("/addOrDelete")
    Result<CollectAddOrDeleteResultDTO> addOrDelete(@RequestBody CollectAddOrDeleteParamDTO collectAddOrDeleteParamDTO);

    @GetMapping("/queryGoodsCollectList")
    Result<List<GoodsCollectBO>> queryGoodsCollectList();
}
